<?php
/**
 * Introduction: 全返汇总表  quanfan_record
 */

namespace Common\Model;


use Think\Model;

class QuanfanRecordModel extends Model
{
    //定义数据库连接信息
    protected $connection;

    //定义表名
    protected $tableName = 'quanfan_record';

    /**
     * 初始化
     */
    public function _initialize()
    {

        $this->connection = C('Databaese');

    }

    /**
     * 获取数据
     */
    public function getList($member_id){
        $time = time()+24*3600;
        return $info = $this->where("member_id=$member_id and status!=3 and (status=1 or return_time>0)")->field("return_time,returned_money,status")->select();

    }


}